<include file="Public:header" />
<form id="info_form" action="{:U('Article/edit')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">{:L('article_basic')}</li>
			<li>{:L('article_seo')}</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">

                        <tr>
                            <th>所属楼盘 :</th>
                            <td>
                                <span id="housename">{$housename}</span>
                                <button class="J_showdialog" data-pic="0" data-uri="{:U('House/publicSelectHouse', array('menuid'=>$menuid))}" data-acttype="ajax" data-title="选择楼盘" data-id="select" data-width="670" data-height="500" data-boxtype="radio" data-boxname="houseid" data-val="house_id" data-displaybox="housename">选择楼盘</button>
                                <input type="hidden" name="house_id" id="house_id" value="{$houseid}">
                                <input type="hidden" name="model" id="model" value="{$model}" />
                            </td>
                        </tr>

                   	<tr>
						<th width="120">{:L('article_cateid')} :</th>
						<td><select class="J_cate_select mr10" data-pid="0" data-uri="{:U('Article_cate/ajax_getchilds')}" data-selected="{$selected_ids}"></select>
                			<input type="hidden" name="cate_id" id="J_cate_id" value="{$info.cate_id}" /></td>
					</tr>
		            <tr>
						<th>{:L('article_title')} :</th>
						<td>
		                    <input type="text" name="title" id="J_title" rel="title_color" class="input-text iColorPicker" size="60" value="{$info.title}" style="color:{$info.colors}">		                </td>
					</tr>
		            <tr>
						<th>缩略图:</th>
						<td>
					<notempty name="info['img']">
					<img src="{$info.img}" width="100" height="100"/><br /></notempty>
                        <input type="file" name="img" class="input-text"  style="width:200px;" />
                        </td>
		 			</tr>

					<tr>
						<th>{:L('publish')} :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" <if condition="$info.status eq '1'">checked="checked"</if>> {:L('yes')}</label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" <if condition="$info.status eq '0'">checked="checked"</if>> {:L('no')}</label>
						</td>
					</tr>
                    <tr>
                        <th>简介 :</th>
                        <td>
                            <textarea style="width:500px;height:80px;resize: none;"  name="desc">{$info.desc}</textarea>
                        </td>
                    </tr>
		            <tr>
		                <th>详细内容 :</th>
						<td><script id="info" name="info" type="text/plain">{$info.info}</script></td>
					</tr>
				</table>
			</div>
			<div class="content_list pad_10 hidden">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th width="120">{:L('seo_title')} :</th>
		 				<td><input type="text" name="seo_title" id="seo_title" class="input-text" size="60" value="{$info.seo_title}"></td>
					</tr>
					<tr>
						<th>{:L('seo_keys')} :</th>
						<td><input type="text" name="seo_keys" id="seo_keys" class="input-text" size="60" value="{$info.seo_keys}"></td>
					</tr>
					<tr>
						<th>{:L('seo_desc')} :</th>
						<td><textarea name="seo_desc" id="seo_desc" cols="80" rows="8">{$info.seo_desc}</textarea></td>
					</tr>
				</table>
			</div>


        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
<input type="hidden" name="menuid"  value="{$menuid}"/>
<input type="hidden" name="id" id="id" value="{$info.id}" />
    <input type="hidden" name="isrec" value="{$info.isrec}" />
</form>
<include file="Public:footer" />
<script src="__JS__/jquery/plugins/colorpicker.js"></script>
<script>
$('.J_cate_select').cate_select('请选择');
$(function() {
	$('ul.J_tabs').tabs('div.J_panes > div');
	
});
</script>
<js file="__STATIC__/ueditor/ueditor.config.js" charset="utf-8" />
<js file="__STATIC__/ueditor/ueditor.all.min.js" charset="utf-8" />
<js file="__STATIC__/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8" />
<script type="text/javascript">
    window.UEDITOR_HOME_URL='__STATIC__/ueditor/';
    window.onload=function(){
        window.UEDITOR_CONFIG.initialFrameWidth=880;
        window.UEDITOR_CONFIG.initialFrameHeight=500;
        UE.getEditor('info');
        upmoreimg(true);
    }
</script>
<js file="__JS__/uploadImg.js" charset="utf-8" />
</body>
</html>